﻿using System.Reflection;

namespace Songhay.Silverlight.BiggestBox.ViewModels
{
    using Songhay.Models;
    using Songhay.Mvvm.ViewModels;

    /// <summary>
    /// Display data for the Footer.
    /// </summary>
    public class FooterViewModel : ViewModelBase
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="FooterViewModel"/> class.
        /// </summary>
        public FooterViewModel()
        {
            var info = new FrameworkAssemblyInfo(Assembly.GetExecutingAssembly());
            string s = string.Format("{0}, {1} Version: {2}, {3}",
                info.AssemblyCompany,
                info.AssemblyTitle,
                info.AssemblyVersion,
                info.AssemblyVersionDetail);
            this.AssemblyInformationDisplayLine = s;
        }

        /// <summary>
        /// Gets or sets the assembly information targetValues line.
        /// </summary>
        /// <value>The assembly information targetValues line.</value>
        public string AssemblyInformationDisplayLine { get; set; }
    }
}
